package com.hbnu.serializable;

import java.io.Serial;
import java.io.Serializable;

public class Person implements Serializable {
    @Serial
    private static final long serialVersionUID = 3194234011601649723L;
    private int pid;
    private String username;
    private double salary;
    
    public Person(int pid, String username, double salary) {
        this.pid = pid;
        this.username = username;
        this.salary = salary;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Person{" +
                "pid=" + pid +
                ", username='" + username + '\'' +
                ", salary=" + salary +
                '}';
    }
}
